<?php
namespace App\Modules\IntegralOrder;
use App\Modules\AdapterApi;
use App\Services\IntegralOrder\OrderIndex;
/**
 * Created by PhpStorm.
 * User: 97606
 * Date: 2018/6/12
 * Time: 10:10
 */
class Order extends AdapterApi
{
    /*后台获取积分订单列表*/
    public function adminIntegralOrderList(): array 
    {
        $data = pick_array($this->postData, ['page', 'listRows', 'keywords', 'token']);
        return OrderIndex::Order()->adminIntegralOrderList($data);
    }

    /*后台获取某积分订单的详情*/
    public function adminIntegralOrderInfo(): array 
    {
        $data = pick_array($this->postData, ['id', 'token']);
        return OrderIndex::Order()->adminIntegralOrderInfo($data);


        /*$data = $this->haveIssetReceiveData(['id'=>0, 'token'=>' ']);
        return $this->oneStepRun($data, 'serverintegralmall/order/Order/adminIntegralOrderInfo', '', '1', $this->orderValidate, $this->orderLogic);*/
    }

    /*后台对某积分订单进行发货操作*/
    public function shipmentsGoods(): array 
    {
        $data = pick_array($this->postData, ['id', 'logistics_company_code', 'logistics_company_name', 'waybill_number', 'token']);
        return OrderIndex::Order()->shipmentsGoods($data);

        /*$data = $this->haveIssetReceiveData(['id'=>0, 'logistics_company_code'=>'', 'logistics_company_name'=>' ', 'waybill_number'=>' ', 'token'=>' ']);
        return $this->stepRun($data, 'serveruser/auth/Token/hGetAll,serveruser/auth/App/find,serverintegralmall/order/Order/adminIntegralOrderInfo,serveruser/user/User/info,serverfund/integral/IntegralAccount/unfreeze,serverfund/integral/IntegralAccount/transfer,serverintegralmall/order/Order/shipmentsGoods', '', 'shipmentsGoods', '1', $this->orderValidate, $this->orderLogic);*/
    }





}